package com.czmini.cztest.dao;

import com.czmini.cztest.common.MySqlExtensionMapper;
import com.czmini.cztest.entity.ZcTestUser;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;


//@Component Y用componet 注册用bean
@Repository // 注册为语义级别的注解
public interface ZcTestUserMapper extends MySqlExtensionMapper<ZcTestUser> {

    //对应uodate的方法
    int updateUser(@Param("userName")String username,
                   @Param("password")String password,
                   @Param("email")String email,
                   @Param("autoCreateCaseJobName")String autoCreateCaseJobName,
                    @Param("id")Integer id
                   );

    List<ZcTestUser> ByName(@Param("userName")String username,
                       @Param("userId")Integer id
    );
}
